import React, { Component } from 'react'
import './message.css'
export default class message extends Component {

    render() {
        const {setIsshow,addClass} = this.props;
        return (
            <div className="black">
                <div className="white">
                    <div className="inputs">
                        分类名称：<input type="text" ref="classNames"/>
                    </div>
                    <div className="btn"> 
                        <span onClick={setIsshow}>取消</span>
                        <span onClick={()=>addClass(this.refs.classNames.value)}>确定</span>
                    </div>
                </div>
            </div>
        )
    }
}
